<?php

/**
 * @author      Nguyen Duc Thuan <me@ndthuan.com>
 * @copyright   Copyright (c) 2009 Nguyen Duc Thuan <me@ndthuan.com>
 */
class Fete_Loader
{

    /**
     * Register SPL autoloader
     */
    static public function registerAutoload()
    {
        spl_autoload_register(array(__CLASS__, 'loadClass'));
    }

    static public function loadClass($className)
    {
        require str_replace('_', '/', $className) . '.php';
    }
}